
import apiHelper from './apiHelper';

class homeService {

	//请求 ：通行证列表
	passList(data) {
		let requestParam = {
			url: `${apiHelper.baseApiUrl}emsc-partner/b/entw/qel`,
			data: {
				method: 'post',
				body: data
			}
		};
		return apiHelper.fetch(requestParam);
	}

	//请求：获得签注种类  不用修改method
	getCategory(data) {
		let requestParam = {
			url: `${apiHelper.baseApiUrl}emsc-partner/b/entw/cr`, 
			data: {
				method: 'post',
				body: data
			}
		};
		return apiHelper.fetch(requestParam);
	}

	//请求：全量或按照省份id获取地市列表
	getProvinceList(data) {
		let requestParam = {
			url: `${apiHelper.baseApiUrl}emsc-partner/b/entw/eca`, 
			data: {
				method: 'post',
				body: data
			}
		};
		return apiHelper.fetch(requestParam);
	}

	//请求：获得默认地址
	defaultAddress(data) {
		let requestParam = {
			url: `${apiHelper.baseApiUrl}emsc-partner/b/a/q/default`,
			data: {
				method: 'post',
				body: data
			}
		};
		return apiHelper.fetch(requestParam);
	}

	//请求：获得签注种类
	subMitForm(data) {
		let requestParam = {
			url: `${apiHelper.baseApiUrl}emsc-partner/b/entw/confirmOrder`,
			data: {
				method: 'post',
				body: data
			}
		};
		return apiHelper.fetch(requestParam);
	}

}
// 实例化后再导出
export default new homeService()